﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HMIS.FrameWork.DomainBase;
using HMIS.FrameWork;
using HMIS.Infrastructure.Core.Authority;

namespace HMIS.Infrastructure.Facade.Authority
{
    public interface IActionPermissionFacade : IDomainFacade
    {
        IList<ActionPermission> GetPlistAll(int start, int limit, string sort, string dir, List<DataFilter> filters, out long total);
        IList<ActionPermission> QueryActionPlist(string query, int start, int limit, out long total);
        void SaveOrUpdate(ActionPermission entity);
        ActionPermission LoadActionPermission(string id);
        ActionPermission GetActionPermission(string id);
        bool IsFieldExistForActionPermission(string fieldName, string fieldValue, string id, string controllerName);
        void DeleteActionPermission(string id);
        IList<ActionPermission> GetActionPermissionListByRoleId(string roleId);
    }
}
